<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link href="${ctx}/resource/assets/css/bootstrap.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="${ctx}/resource/css/style.css"/>
    <link href="${ctx}/resource/assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="${ctx}/resource/assets/css/ace.min.css"/>
    <link rel="stylesheet" href="${ctx}/resource/font/css/font-awesome.min.css"/>
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="${ctx}/resource/assets/css/ace-ie.min.css"/>
    <![endif]-->
    <script src="${ctx}/resource/js/jquery-1.9.1.min.js"></script>
    <script src="${ctx}/resource/assets/js/bootstrap.min.js"></script>
    <script src="${ctx}/resource/assets/js/typeahead-bs2.min.js"></script>
    <script src="${ctx}/resource/assets/js/jquery.dataTables.min.js"></script>
    <script src="${ctx}/resource/assets/js/jquery.dataTables.bootstrap.js"></script>
    <script src="${ctx}/resource/assets/layer/layer.js" type="text/javascript"></script>
    <script src="${ctx}/resource/assets/laydate/laydate.js" type="text/javascript"></script>
</head>

<body>
<div class="page-content clearfix">
    <div id="Member_Ratings">
        <div class="d_Confirm_Order_style">
            <form method="post" action="xs_lr.do">
                <div class="search_style" style="margin-left: 20px">
                    <ul class="search_content clearfix">
                       <li><label class="l_f">年份</label>
                  <select class="select" name="year">
					<option value="">请选择</option>
					<c:if test="${Obj.year == 2016 }">
				     	<option value="2016" selected="selected">2016年</option>
					</c:if>
					<c:if test="${Obj.year != 2016 }">
				     	<option value="2016">2016年</option>
					</c:if>
					
					<c:if test="${Obj.year == 2017 }">
				     	<option value="2017" selected="selected">2017年</option>
					</c:if>
					<c:if test="${Obj.year != 2017 }">
				     <option value="2017">2017年</option>
					</c:if>
					
					<c:if test="${Obj.year == 2018 }">
				     	<option value="2018" selected="selected">2018年</option>
					</c:if>
					<c:if test="${Obj.year != 2018 }">
				       <option value="2018">2018年</option>
					</c:if>
					
					<c:if test="${Obj.year == 2019 }">
				     	<option value="2019" selected="selected">2019年</option>
					</c:if>
					<c:if test="${Obj.year != 2019 }">
				      <option value="2019">2019年</option>
					</c:if>
					
				</select>
                       </li>
                         <li><label class="l_f">月份</label>
                  <select class="select" name="yue">
					<option value="">请选择</option>
						
					
					
					
					
					
					
					
				
					<c:if test="${Obj.yue == 1 }">
					<option value="1" selected="selected">1月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 1 }">
					<option value="1">1月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 2 }">
					<option value="2" selected="selected">2月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 2 }">
					
					<option value="2">2月</option>
					</c:if>
					<c:if test="${Obj.yue == 3 }">
					<option value="3" selected="selected">3月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 3 }">
					<option value="3">3月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 4 }">
					<option value="4" selected="selected">4月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 4 }">
					<option value="4">4月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 5 }">
					<option value="5" selected="selected">5月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 5 }">
					<option value="5">5月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 6 }">
					<option value="6" selected="selected">6月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 6 }">
					<option value="6">6月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 7 }">
					<option value="7" selected="selected">7月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 7 }">
					
					<option value="7">7月</option>
					</c:if>
					<c:if test="${Obj.yue == 8 }">
					<option value="8" selected="selected">8月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 8 }">
					<option value="8">8月</option>
					
					</c:if>
						
					
					
				
					<c:if test="${Obj.yue == 9 }">
					<option value="9" selected="selected">9月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 9 }">
					
					<option value="9">9月</option>
					</c:if>
					<c:if test="${Obj.yue == 10 }">
					<option value="10" selected="selected">10月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 10 }">
					<option value="10">10月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 11 }">
					<option value="11" selected="selected">11月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 11 }">
					<option value="11">11月</option>
					
					</c:if>
					<c:if test="${Obj.yue == 12 }">
						<option value="12" selected="selected">12月</option>
					
					</c:if>
					<c:if test="${Obj.yue != 12 }">
						<option value="12">12月</option>
					
					</c:if>
				
					
				</select>
                       </li>
                        <li style="width:90px;">
                            <button type="submit" class="btn_search"><i class="icon-search"></i>查询</button>
                        </li> 
                        
                    </ul>
                </div>
            </form>
        </div>
    </div>
    <div class="border clearfix">
       <span class="l_f">
       </span>
    </div>


    <div class="margin clearfix">
        <div class="compete_list">
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
				<th width="">年份</th>
				<th width="">月份</th>
				<th width="">总收入</th>
				<th width="">总支出</th>
				<th width="">总利润</th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                         <td>${Obj.year}</td>
                         <td>${Obj.yue}</td>
                         <td>${tot1}</td>
                          <td>${tot}</td>
                         <td>${tot1-tot}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- 分页结束 -->
    </div>

</body>


</html>
<script type="text/javascript">
//单个删除
function del(id){
	if(confirm("您确定要删除吗?")){
		window.location.href="${ctx}/cg_delete.do?id="+id;
	}
}

    function edit(id) {
        layer.open({
            type: 2,
            area: ['910px', '850px'],
            content: ['user_edit.do?id=' + id, 'no']  //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
        });

    }

    function add() {
        layer.open({
            type: 2,
            area: ['510px', '700px'],
            content: ['user_add.do', 'no']  //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
        });

    }

    function sh(id) {
        $.ajax({
            cache: false,
            type: "post",
            url: "user_updateSh.do",
            data: {id: id},// 你的formid
            async: false,
            success: function (data) {
                if (data.flag) {
                    layer.msg('审核成功', {
                        icon: 1,
                        time: 2000 //2秒关闭（如果不配置，默认是3秒）
                    }, function () {
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                        window.location.href = data.url;
                    });
                }
            }
        });
    }

    (function () {
        $('#Personal').css("width", "700pxpx");
    })
    /*权限-删除*/
    function Competence_del(id) {
        layer.confirm('确认要删除吗？', function () {
            $.ajax({
                cache: true,
                type: "post",
                url: "user_delete.do",
                data: {userId: id},// 你的formid
                async: false,
                success: function (data) {
                    if (data.flag) {
                        layer.msg('删除成功', {
                            icon: 1,
                            time: 2000 //2秒关闭（如果不配置，默认是3秒）
                        }, function () {
                            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                            parent.layer.close(index); //再执行关闭
                            window.location.href = data.url;
                        });
                    } else {
                        layer.msg('删除失败', {
                            icon: 1,
                            time: 2000
                        });
                    }
                }
            });
        });
    }
    /*修改权限*/
    function Competence_modify(id) {
        window.location.href = "Competence.html?=" + id;
    }
    ;
    /*字数限制*/
    function checkLength(which) {
        var maxChars = 200; //
        if (which.value.length > maxChars) {
            layer.open({
                icon: 2,
                title: '提示框',
                content: '您出入的字数超多限制!',
            });
            // 超过限制的字数了就将 文本框中的内容按规定的字数 截取
            which.value = which.value.substring(0, maxChars);
            return false;
        } else {
            var curr = maxChars - which.value.length; //250 减去 当前输入的
            document.getElementById("sy").innerHTML = curr.toString();
            return true;
        }
    }
    ;
    //面包屑返回值
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.iframeAuto(index);
    $('.Order_form ,#Competence_add').on('click', function () {
        var cname = $(this).attr("title");
        var cnames = parent.$('.Current_page').html();
        var herf = parent.$("#iframe").attr("src");
        parent.$('#parentIframe span').html(cname);
        parent.$('#parentIframe').css("display", "inline-block");
        parent.$('.Current_page').attr("name", herf).css({"color": "#4c8fbd", "cursor": "pointer"});
        //parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+">" + cnames + "</a>");
        parent.layer.close(index);

    });
</script>